package com.zyg.user.client.factory;

import com.zyg.common.utils.R;
import com.zyg.user.client.ManagerClient;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class ManagerClientFallbackFactory implements FallbackFactory<ManagerClient> {
    @Override
    public ManagerClient create(Throwable throwable) {
        return () -> R.error("zyg-manager服务挂了[fallbackFactory]。。。");
    }
}
